package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GoodAttribute entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "good_attribute", catalog = "jpw")
public class GoodAttribute implements java.io.Serializable {

	// Fields

	private Integer attrId;
	private String attrName;
	private Integer attrInputType;
	private String attrValues;
	private Integer gcId;
	private Integer attrShow;
	private Integer attrIndex;

	// Constructors

	/** default constructor */
	public GoodAttribute() {
	}

	/** minimal constructor */
	public GoodAttribute(String attrName, Integer attrInputType, Integer gcId,
			Integer attrShow) {
		this.attrName = attrName;
		this.attrInputType = attrInputType;
		this.gcId = gcId;
		this.attrShow = attrShow;
	}

	/** full constructor */
	public GoodAttribute(String attrName, Integer attrInputType,
			String attrValues, Integer gcId, Integer attrShow, Integer attrIndex) {
		this.attrName = attrName;
		this.attrInputType = attrInputType;
		this.attrValues = attrValues;
		this.gcId = gcId;
		this.attrShow = attrShow;
		this.attrIndex = attrIndex;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "attr_id", unique = true, nullable = false)
	public Integer getAttrId() {
		return this.attrId;
	}

	public void setAttrId(Integer attrId) {
		this.attrId = attrId;
	}

	@Column(name = "attr_name", nullable = false, length = 60)
	public String getAttrName() {
		return this.attrName;
	}

	public void setAttrName(String attrName) {
		this.attrName = attrName;
	}

	@Column(name = "attr_input_type", nullable = false)
	public Integer getAttrInputType() {
		return this.attrInputType;
	}

	public void setAttrInputType(Integer attrInputType) {
		this.attrInputType = attrInputType;
	}

	@Column(name = "attr_values", length = 100)
	public String getAttrValues() {
		return this.attrValues;
	}

	public void setAttrValues(String attrValues) {
		this.attrValues = attrValues;
	}

	@Column(name = "gc_id", nullable = false)
	public Integer getGcId() {
		return this.gcId;
	}

	public void setGcId(Integer gcId) {
		this.gcId = gcId;
	}

	@Column(name = "attr_show", nullable = false)
	public Integer getAttrShow() {
		return this.attrShow;
	}

	public void setAttrShow(Integer attrShow) {
		this.attrShow = attrShow;
	}

	@Column(name = "attr_index")
	public Integer getAttrIndex() {
		return this.attrIndex;
	}

	public void setAttrIndex(Integer attrIndex) {
		this.attrIndex = attrIndex;
	}

}